class AddNewFieldsNhanViens < ActiveRecord::Migration
  def self.up
    add_column :nhan_viens, :Email, :string
    add_column :nhan_viens, :NgaySinh, :date
    add_column :nhan_viens, :GioiTinh, :boolean
    add_column :nhan_viens, :password_salt, :string
    add_column :nhan_viens, :password_hash, :string
    add_column :nhan_viens, :authentication_token, :string
    add_column :nhan_viens, :password_reset_token, :string
    add_column :nhan_viens, :password_expires_after, :datetime

    add_column :nhan_viens, :signed_up_on, :datetime
    add_column :nhan_viens, :last_signed_in_on, :datetime

    remove_column :nhan_viens, :TaiKhoan
    remove_column :nhan_viens, :MatKhau
    remove_column :nhan_viens, :password_digest
    remove_column :nhan_viens, :remember_token

    remove_column :nhan_viens, :created_at
    remove_column :nhan_viens, :updated_at

  end
end